/**
 * Copyright [2019] [LiBo/Alex of copyright liboware@gmail.com ]
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.dess.stateful.egine.core;
import com.hyts.dess.stateful.egine.model.StateActionModule;
import com.hyts.dess.stateful.egine.model.StateFlowModule;

import java.util.List;
import java.util.Map;

/**
 * @project-name:dess
 * @package-name:com.hyts.dess.stateful.egine.core
 * @author:LiBo/Alex
 * @create-date:2020-06-22 17:23
 * @copyright:libo-alex4java
 * @email:liboware@gmail.com
 * @description:
 */
public interface StateMachine {

    /**
     * 状态机操作整体服务对象数据上下文
     */
    //Map<String, Map<String, Map<String, OperatorDTO>>> FLOW_MAP = new HashMap<>();

    /**
     * 获取相关状态流模板的数据对象
     * @param stateFlowModule
     * @return
     */
    Map<String, Map<String, StateActionModule>> getStateFlowModule(StateFlowModule stateFlowModule);

    /**
     * 删除相关状态流模板的数据对象
     * @param stateFlowModule
     * @return
     */
    boolean removeStateFlowModule(StateFlowModule stateFlowModule);

    /**
     * 获取相关行为执行对象
     * @return
     */
    List<StateActionModule> getActionSubjects(String state,StateFlowModule stateFlowModule);

}
